/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecspider;

import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;

/**
 *
 * @author Mikael Köhlmyr | mikael@kohlmyr.com | http://www.kmyr.net
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static final int width = 850;
    public static final int height = 580;
    public static JFrame window;
    public static spiderCanvas canvas;
    public static JMenuBar menubar;
    public static JMenu menu;
    public static final String adam = "dem";

    public static void main(String[] args) throws IOException, SQLException, ClassNotFoundException {
        // TODO code application logic here
        //String doc = spiderlib.getStringFromUrl("http://www.ecs.soton.ac.uk/people/dem");
        //spiderlib.getColleagueLinks(doc);

        
        window = new JFrame("ecSpider 1.0 | 'Method to the madness'");
        window.setBounds(0, 0, width, height);

        window.setResizable(false);
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        canvas = new spiderCanvas();
        window.add(canvas);
        window.setVisible(true);
        
        //spiderlib.sqlConnect();
        //BELOW IS FUNCTIONAL
        //ArrayList<String> people = new ArrayList<String>();
        //people.add(adam);
        //people = spiderlib.spider(people);
        
/**
        for (int i = 0; i < people.size(); i++) {
            System.out.println(people.get(i));
        }*/
    }

}
